<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<html>
<head>
    <meta charset="utf-8">
    <title>新增页面</title>

    <script type="text/javascript">

    </script>
</head>
<body>

<%
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
%>

<form action="<%=basePath%>user/add" method="post">
    <input  name="id" hidden />
    昵称：<input name="name" /> <br>
    性别：<input name="sex" /> <br>
    生日：<input type="date" name="birthday"  value="<fmt:formatDate value='${user.brithday}' type='date'/>"  /> <br>
    生日：<input  type="date" name="createtime"  /> <br>


    <button type="submit">提交</button>
    <button>重置</button>

</form>
</body>
</html>
